Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the new Figma share URL #240

Merged
merged 5 commits into from
Jul 3, 2024

Conversation

pocka
Copy link
Collaborator

@pocka pocka commented May 17, 2024

close #239

Figma changed URL structure for the share URL from "/file/..." to "/<anything>/...". This patch updates the URL checking regexp according to their updated embed document.

📦 Published PR as canary version: 8.0.3--canary.240.540483c.0

✨ Test out this PR locally via:

npm install @storybook/[email protected]
# or 
yarn add @storybook/[email protected]

<#239>

Figma changed URL structure for the share URL from "/file/..." to
"/<anything>/...". This patch updates the URL checking regexp according
to their updated embed document.

close #239
@pocka pocka added the category: feature New feature or request label May 17, 2024
@pocka pocka self-assigned this May 17, 2024
@pocka pocka requested a review from ghengeveld as a code owner May 17, 2024 15:50
@samwalshnz
Copy link

samwalshnz commented May 28, 2024

I gave this a test on my end, and it did the trick! Nice one @pocka
Is there anything holding this back from merge?

Looks like it's just the regex failing on Codacy. I don't see any harm any updating to align with Codacy's requirements, even if Figma docs have a slightly different regex pattern? Otherwise, is there a way to disable the static code analysis warning on that line, with Codacy?

@ed-ateixeira
Copy link

any updates when this should be merged?

@ghengeveld ghengeveld merged commit 1138e9a into master Jul 3, 2024
2 of 3 checks passed
@ghengeveld ghengeveld deleted the feature/updated-figma-share-url branch July 3, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for the updated Figma embed
4 participants